<div class="Medicos index">
    <h2><?php echo __('Medicos'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('UF_CRM'); ?></th>
            <th><?php echo $this->Paginator->sort('CD_CRM'); ?></th>
            <th><?php echo $this->Paginator->sort('CD_LOGIN'); ?></th>
            <th><?php echo $this->Paginator->sort('NM_MEDIC'); ?></th>
            <th><?php echo $this->Paginator->sort('HABILITADO'); ?></th>
            <th><?php echo $this->Paginator->sort('CPF_MEDIC'); ?></th>
            <th><?php echo $this->Paginator->sort('ST_MRG'); ?></th>
            <th><?php echo $this->Paginator->sort('END_ELETRONICO'); ?></th>
            <th><?php echo $this->Paginator->sort('END_ELETRONICO_SEC'); ?></th>
            <th><?php echo $this->Paginator->sort('IM_FOTO'); ?></th>
            <th><?php echo $this->Paginator->sort('TP_SEXO'); ?></th>
            <th><?php echo $this->Paginator->sort('DT_NASC'); ?></th>
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($Medico as $m): ?>
            <tr>
                <td><?php echo h($m['Medico']['UF_CRM']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['CD_CRM']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['CD_LOGIN']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['NM_MEDIC']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['HABILITADO']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['CPF_MEDIC']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['ST_MRG']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['END_ELETRONICO']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['END_ELETRONICO_SEC']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['IM_FOTO']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['TP_SEXO']); ?>&nbsp;</td>
                <td><?php echo h($m['Medico']['DT_NASC']); ?>&nbsp;</td>
                <td class="actions">
                    <?php echo $this->Html->link(__('View'), array('action' => 'visualizar', $m['Medico']['CD_LOGIN'])); ?>
                    <?php echo $this->Html->link(__('Edit'), array('action' => 'editar', $m['Medico']['CD_LOGIN'])); ?>
                    <?php echo $this->Form->postLink(__('Delete'), array('action' => 'deletar', $m['Medico']['CD_LOGIN']), null, __('Are you sure you want to delete # %s?', $m['Medico']['CD_LOGIN'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
    <p>
        <?php
        echo $this->Paginator->counter(array(
            'format' => __('Pagina {:page} de {:pages}, exibindo {:current} registros de {:count} no total, de {:start}, até {:end}')
        ));
        ?>	</p>
    <div class="paging">
        <?php
        echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
        echo $this->Paginator->numbers(array('separator' => ''));
        echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
        ?>
    </div>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('New M E D I C O'), array('action' => 'cadastrar')); ?></li>
    </ul>
</div>
